const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({


    devServer: {

        port: 8089,  // 端口号的配置

        proxy: {
            '/api': {
                target: 'http://localhost:8888',
                changeOrigin: true,
                pathRewrite: {'^/api': ''},
                ws: true,
            }
        }
    },
    transpileDependencies: true,
    publicPath: '/',
    outputDir: 'dist', // 输出文件目录
    assetsDir: 'static', // 放置静态资源
    productionSourceMap: false
})
